-- GENERATED SPELL FOR [Dun Garok Priest] --


function spell0_2346(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(11642,pUnit)
pUnit:RegisterEvent('Sorts_2346', 3500, 1)
end

function spell1_2346(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(9734,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2346', 2500, 1)
end

function Sorts_2346(pUnit, Event)
local choix_sorts_2346 = math.random(0, 1)
if choix_sorts_2346 == 0 then
pUnit:RegisterEvent('spell0_2346', 1, 1)
end
if choix_sorts_2346 == 1 then
pUnit:RegisterEvent('spell1_2346', 1, 1)
end
end

function mob2346_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2346', math.random(1500, 3000), 1)
end

function mob2346_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2346_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2346_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2346, 1, 'mob2346_Action')
RegisterUnitEvent(2346, 2, 'mob2346_Leave')
RegisterUnitEvent(2346, 3, 'mob2346_Kill')
RegisterUnitEvent(2346, 4, 'mob2346_Die')
